﻿export default [
	{
		path: "/",
		component: "../layouts/BlankLayout",
		routes: [
			{
				path: "/user",
				component: "../layouts/UserLayout",
				routes: [
					{
						name: "登录",
						path: "/user/login",
						component: "./User/login",
					},
				],
			},
			{
				path: "/",
				component: "../layouts/SecurityLayout",
				routes: [
					{
						path: "/",
						component: "../layouts/BasicLayout",
						authority: ["admin", "user"],
						routes: [
							{
								path: "/",
								redirect: "/userSetting/userMan",
							},
							// 用户管理
							{
								path: "/userSetting",
								name: "userSetting",
								icon: "usergroupAdd",
								routes: [
									{
										path: "/userSetting/userMan",
										name: "userMan",
										icon: "smile",
										component: "./userSetting/userMan",
									},
									// {
									// 	path: "/userSetting/userAnalysis",
									// 	name: "userAnalysis",
									// 	icon: "smile",
									// 	component: "./userSetting/userAnalysis",
									// },
								],
							},
							//小区管理
							{
								path: "/communityMan",
								name: "communityMan",
								icon: "insertRowRight",
								routes: [
									{
										path: "/communityMan/community",
										name: "community",
										icon: "smile",
										component: "./communityMan/community",
									},
									{
										path: "/communityMan/communityAmap",
										name: "communityAmap",
										icon: "smile",
										component: "./communityMan/communityAmap",
									},
									{
										path: "/communityMan/regionAmap",
										name: "regionAmap",
										icon: "smile",
										component: "./communityMan/regionAmap",
									},
									{
										path: "/communityMan/communitySendAmap",
										name: "communitySendAmap",
										icon: "smile",
										component: "./communityMan/communitySendAmap",
										hideInMenu: true,
									},
									{
										path: "/communityMan/communityHousingAmap",
										name: "communityHousingAmap",
										icon: "smile",
										component: "./communityMan/communityHousingAmap",
										hideInMenu: true,
									},
								],
							},
							//地理位置菜单
							{
								path: "/geographic",
								name: "geographic",
								icon: "aim",
								routes: [
									{
										path: "/geographic/region",
										name: "region",
										icon: "smile",
										component: "./geographic/region",
									},
								],
							},
							//活动管理
							{
								path: "/activityMan",
								name: "activityMan",
								icon: "flag",
								routes: [
									// {
									// 	path: "/activityMan/Activity",
									// 	name: "Activity",
									// 	icon: "smile",
									// 	component: "./activityMan/Activity",
									// },
									{
										path: "/activityMan/ActivityTemp",
										name: "ActivityTemp",
										icon: "smile",
										component: "./activityMan/ActivityTemp",
									},
									{
										path: "/activityMan/ActivityTask",
										name: "ActivityTask",
										icon: "smile",
										component: "./activityMan/ActivityTask",
									},
									{
										path: "/activityMan/ActivityItem",
										name: "ActivityItem",
										icon: "smile",
										component: "./activityMan/ActivityItem",
									},
								],
							},
							//回收员管理
							{
								path: "/recyclerMan",
								name: "recyclerMan",
								icon: "userSwitch",
								routes: [
									{
										path: "/recyclerMan/recyclerList",
										name: "recyclerList",
										icon: "smile",
										component: "./recyclerMan/recyclerList",
									},
								],
							},
							//推广员管理
							{
								path: "/promotionMan",
								name: "promotionMan",
								icon: "userSwitch",
								routes: [
									{
										path: "/promotionMan/promotionAudit",
										name: "promotionAudit",
										icon: "smile",
										component: "./promotionMan/promotionAudit",
									},
									{
										path: "/promotionMan/promotionList",
										name: "promotionList",
										icon: "smile",
										component: "./promotionMan/promotionList",
									},
								],
							},
							//企业微信
							{
								path: "/firmMan",
								name: "firmMan",
								icon: "userSwitch",
								routes: [
									{
										path: "/firmMan/place",
										name: "place",
										icon: "smile",
										component: "./firmMan/place",
									},
									{
										path: "/firmMan/userFriend",
										name: "userFriend",
										icon: "smile",
										component: "./firmMan/userFriend",
									},
									{
										path: "/firmMan/userTag",
										name: "userTag",
										icon: "smile",
										component: "./firmMan/userTag",
									},
								],
							},
							//数据统计
							{
								path: "/chart",
								name: "chart",
								icon: "barChart",
								routes: [
									{
										path: "/chart/sevenActivity",
										name: "sevenActivity",
										icon: "smile",
										component: "./chart/sevenActivity",
									},
									{
										path: "/chart/manor",
										name: "manor",
										icon: "smile",
										component: "./chart/manor",
									},
									{
										path: "/chart/recycle",
										name: "recycle",
										icon: "smile",
										component: "./chart/recycle",
									},
									{
										path: "/chart/fissionActivity",
										name: "fissionActivity",
										icon: "smile",
										component: "./chart/fissionActivity",
									},
									{
										path: "/chart/place",
										name: "place",
										icon: "smile",
										component: "./chart/place",
									},
								],
							},
							//订单管理
							{
								path: "/orderMan",
								name: "orderMan",
								icon: "copy",
								routes: [
									{
										path: "/orderMan/recycleOrder",
										name: "recycleOrder",
										icon: "smile",
										component: "./orderMan/recycleOrder",
									},
								],
							},
							//商品管理
							{
								path: "/goodsMan",
								name: "goodsMan",
								icon: "gift",
								routes: [
									{
										path: "/goodsMan/classifyMan",
										name: "classifyMan",
										icon: "smile",
										component: "./goodsMan/classifyMan",
									},
									{
										path: "/goodsMan/itemMan",
										name: "itemMan",
										icon: "smile",
										component: "./goodsMan/itemMan",
									},
								],
							},
							//游戏管理
							{
								path: "/gameMan",
								name: "gameMan",
								icon: "rocket",
								routes: [
									{
										path: "/gameMan/propsMan",
										name: "propsMan",
										icon: "smile",
										component: "./gameMan/propsMan",
									},
									{
										path: "/gameMan/signMan",
										name: "signMan",
										icon: "smile",
										component: "./gameMan/signMan",
									},
									{
										path: "/gameMan/taskGame",
										name: "taskGame",
										icon: "smile",
										component: "./gameMan/taskGame",
									},
									{
										path: "/gameMan/taskGroupGame",
										name: "taskGroupGame",
										icon: "smile",
										component: "./gameMan/taskGroupGame",
									},
								],
							},
							//轮播管理
							//游戏管理
							{
								path: "/bannerMan",
								name: "bannerMan",
								icon: "picture",
								routes: [
									{
										path: "/bannerMan/bannerList",
										name: "bannerList",
										icon: "smile",
										component: "./bannerMan/bannerList",
									},
								],
							},
							//好物管理
							{
								path: "/goodThing",
								name: "goodThing",
								icon: "like",
								routes: [
									{
										path: "/goodThing/goodList",
										name: "goodList",
										icon: "smile",
										component: "./goodThing/goodList",
									},
									{
										path: "/goodThing/sellAudit",
										name: "sellAudit",
										icon: "smile",
										component: "./goodThing/sellAudit",
									},
								],
							},
							//帖子管理
							{
								path: "/articleMan",
								name: "articleMan",
								icon: "edit",
								routes: [
									{
										path: "/articleMan/authList",
										name: "authList",
										icon: "smile",
										component: "./articleMan/authList",
									},
								],
							},
							//APP管理
							{
								path: "/appMan",
								name: "appMan",
								icon: "apple",
								routes: [
									// APP列表
									{
										path: "/appMan/appList",
										name: "appList",
										icon: "smile",
										component: "./appMan/appList",
									},
								],
							},
							//APP版本管理
							{
								path: "/appVersionsMan",
								name: "appVersionsMan",
								icon: "paperClip",
								routes: [
									// 版本管理
									{
										path: "/appVersionsMan/appversions",
										name: "appversions",
										icon: "smile",
										component: "./appVersionsMan/appversions",
									},
									//热更新
									{
										path: "appVersionsMan/hotUpdate",
										name: "hotUpdate",
										icon: "smile",
										component: "./appVersionsMan/hotUpdate",
									},
									//强制更新
									// {
									// 	path: "appVersionsMan/forcedUpdating",
									// 	name: "forcedUpdating",
									// 	icon: "smile",
									// 	component: "./appVersionsMan/forcedUpdating",
									// },
								],
							},
							//财务管理
							{
								path: "/financeMan",
								name: "financeMan",
								icon: "dollar",
								routes: [
									// 提现
									{
										path: "/financeMan/withdraw",
										name: "withdraw",
										icon: "smile",
										component: "./financeMan/withdraw",
									},
									// 提现审核
									// {
									// 	path: "/financeMan/audit",
									// 	name: "audit",
									// 	icon: "smile",
									// 	component: "./financeMan/audit",
									// },
								],
							},
							//回收物管理
							{
								path: "/regenerantMan",
								name: "regenerantMan",
								icon: "retweet",
								routes: [
									{
										path: "/regenerantMan/regenerant",
										name: "regenerant",
										icon: "smile",
										component: "./regenerantMan/regenerant",
									},
								],
							},
							//垃圾袋 garbageBag
							{
								path: "/garbageMan",
								name: "garbageMan",
								icon: "delete",
								routes: [
									{
										path: "/garbageMan/garbageBag",
										name: "garbageBag",
										icon: "smile",
										component: "./garbageMan/garbageBag",
									},
								],
							},
							{
								component: "./404",
							},
						],
					},
					{
						component: "./404",
					},
				],
			},
		],
	},
	{
		component: "./404",
	},
];
